Remove gdk_surface_get_geometry as public api
authorMatthias Clasen <mclasen@redhat.com>
Mon, 25 Mar 2019 04:00:14 +0000 (00:00 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 28 May 2019 20:25:14 +0000 (20:25 +0000)
We still need to keep the vfunc around, since the
fallback implementation of gdk_display_get_monitor_at_surface
uses it. So, a GDK backend must either have root coordinates
or always return a monitor from monitor_at_surface.

docs/reference/gdk/gdk4-sections.txt
gdk/gdkinternals.h
gdk/gdksurface.h

index c19a3427953ae20b01892bd3a9298bd8bbe2b6d0..3228f21646f18ee33af48ea7643934c77ee5b85c 100644 (file)
@@ -250,7 +250,6 @@ gdk_surface_set_title
 GDK_PARENT_RELATIVE
 gdk_surface_set_cursor
 gdk_surface_get_cursor
-gdk_surface_get_geometry
 gdk_surface_set_geometry_hints
 gdk_surface_get_width
 gdk_surface_get_height
index 8f89e080677c9e79b9e7e0628c7a87736dc17f44..bbfd58cb3726fe3c12edc69a10f005837a4c70ca 100644 (file)
@@ -347,6 +347,12 @@ void gdk_surface_get_root_coords (GdkSurface *surface,
                                   gint       *root_x,
                                   gint       *root_y);
 
+void gdk_surface_get_geometry (GdkSurface *surface,
+                               gint       *x,
+                               gint       *y,
+                               gint       *width,
+                               gint       *height);
+
 
 G_END_DECLS
 
index 3ad09cd974228dcfcd940468a13a99b0f5f01d04..c39fc885b6617d2fb9fbffc411f2a4118ab13b03 100644 (file)
@@ -579,12 +579,6 @@ GDK_AVAILABLE_IN_ALL
 GdkCursor    *gdk_surface_get_device_cursor (GdkSurface     *surface,
                                              GdkDevice     *device);
 GDK_AVAILABLE_IN_ALL
-void          gdk_surface_get_geometry   (GdkSurface      *surface,
-                                          gint            *x,
-                                          gint            *y,
-                                          gint            *width,
-                                          gint            *height);
-GDK_AVAILABLE_IN_ALL
 int           gdk_surface_get_width       (GdkSurface       *surface);
 GDK_AVAILABLE_IN_ALL
 int           gdk_surface_get_height      (GdkSurface       *surface);